<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>joncalhoun.info</title>
    <link href="css/style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
    <?php
    function curPageName() {
        return substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
    }
    ?>
    <div id="page">
        <div id="header">
            <?php
            include 'header.php';
            ?>
        </div>
        <div id="content">
            <div id="contentMain">
                <?php
                $curPage = curPageName();
                $content = substr($curPage, 0, strpos($curPage, "."));
                include $content . "Content.php";
                ?>
            </div>
            <div id="contentFiller">

            </div>
            <div id="contentSidebar">
                <?php
                include 'sidebar.php';
                ?>
            </div>
        </div>
        <div id="fillerAboveHeader">

        </div>
        <div id="footer">
            <?php
            include 'footer.php';
            ?>
        </div>
    </div>


</body>
</html>